<?php if ($this->invitation_list) { foreach($this->invitation_list as $key => $val) { ?>
<?php if($val['active_status'] == 1) { ?>

<li> <a class="fire_userFace" href="people/<?php echo $val['userinfo']['user_name']; ?>" rel="<?php echo $val['active_uid']; ?>" onmouseover="eventsMouseM(this);"><img src="<?php echo $val['userinfo']['avatar_file']; ?>"></a>
	<p class="ag_sendDate"><span>激活成功</span></p>
	<p class="frie_UserName"><a href="people/<?php echo $val['userinfo']['user_name']; ?>" rel="<?php echo $val['active_uid']; ?>" onmouseover="eventsMouseM(this);"><?php echo $val['userinfo']['user_name']; ?></a><span class="frie_mail"><?php echo $val['invitation_email']; ?></span></p>
</li>
<?php }elseif($val['active_status'] == "0" ){ ?>
<li> <a href="javascript:;" class="fire_userFace"><img  src="<?php echo G_STATIC_URL;?>/common/avatar-mid-img.jpg"></a>
	<p class="ag_sendDate"><b>邀请已发送</b><br>
		<a href="javascript:;" onClick=" $(this).parents('li').find('.frie_mail + p').remove();$(this).parents('li').find('.frie_mail').remove(); $(this).parent().html('邀请已取消');$.get(G_BASE_URL + '/invitation/ajax/invite_cancel/invitation_id-<?php echo $val['invitation_id']; ?>','json')" name="invitation_del">取消邀请</a>&nbsp;&nbsp;<a href="javascript:;" onclick="ajax_request(G_BASE_URL + '/invitation/ajax/invite_resend/invitation_id-<?php echo $val['invitation_id']; ?>');" rel="<?php echo $val['invitation_id']; ?>" name="resend">重发邀请</a></p>
	<p><?php echo $val['invitation_email']; ?></p>
	<p class="frie_mail">若对方邮件丢失，可复制以下链接通过QQ等发送给TA</p>
	<p>
		<input value="<?php echo get_js_url('/account/register/email-' . urlencode($val['invitation_email']) . '__icode-' . $val['invitation_code']); ?>" title="点击复制此邮件地址" class="i email_0" onclick="$(this).select(); if ($.browser.msie) { window.clipboardData.setData('Text', $(this).val()); }" />
	</p>
</li>
<?php }elseif($val['active_status'] == "-1"){ ?>
<li> <a href="javascript:;" class="fire_userFace"><img  src="<?php echo G_STATIC_URL;?>/common/avatar-mid-img.jpg"></a>
	<p class="ag_sendDate">邀请已取消</p>
	<p class="frie_UserName"><span class="frie_mail"><?php echo $val['invitation_email']; ?></span></p>
</li>
<?php } ?>
<?php } } ?>